import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SBattleStart

export class SBattleStart extends IMessageBase {
  constructor(arg1: Boolean = false) {
    
    super();if (arg1) {
      MessageManager.instance().regist(this);
    }
    return;
  }

  public /* override */ getType(): int {
    return this._type;
  }

  public /* override */ clone(): IMessageBase {
    return new SBattleStart();
  }

  public /* override */ __write(arg1: SerializeStream): void {
    arg1.writeInt(this.waitTime);
    arg1.writeInt(this.continueTime);
    return;
  }

  public /* override */ __read(arg1: SerializeStream): void {
    this.waitTime = arg1.readInt();
    this.continueTime = arg1.readInt();
    return;
  }

  public /* const */ _type: int = 124;

  public /* var */ waitTime!: int;

  public /* var */ continueTime!: int;

  public static /* var */ _regist: SBattleStart;
}

SBattleStart._regist = new SBattleStart(true);
